package com.rcc.index.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by rcc on 2017/6/23.
 */
@Controller
@SpringBootApplication
public class IndexController {


    /**
     * 测试 Hello World
     * @return
     */
    @RequestMapping("/")
    @ResponseBody
    public String index(){
        return "Hello Spring Boot!";
    }

    public static void main(String[] args)throws Exception {
        SpringApplication.run(IndexController.class, args);
    }
}
